<?php

//公共接口
Route::group([], function(){
    Route::get('/pub', 'IndexController@pub');
    //接口文档
    Route::get('/shareApiDoc', 'shareRouteList@getShareRouteList');
    //七牛回调
    Route::post('/system/qiniuCallback', 'SystemController@qiniuCallback');
    //网站用户反馈信息
    Route::post('/system/websiteFeedBack', 'SystemController@websiteFeedBack');
});
    Route::get('/readLogs', 'SystemController@readLogs');
//不需要登录验证
Route::group(['middleware' => ['before']], function(){
    //发送短信
    Route::get('/interface/sms', 'User\UserController@getVerifyCode');
    //注册
    Route::get('/interface/user/reg', 'User\UserController@reg');
    //登录
    Route::get('/interface/user/login', 'User\UserController@login');
    //获取用户信息
    Route::get('/interface/user/getUserInfo', 'User\UserController@getUserInfo');
    //更新用户信息
    Route::get('/interface/user/upUserInfo', 'User\UserController@upUserInfo');
    
    //用户余额信息
    Route::get('/interface/user/getUserMoney', 'User\UserController@getUserMoney');
    //用户充值记录
    Route::get('/interface/user/getUserAddMoneyList', 'User\UserController@getUserAddMoneyList'); //不能验证
    //充值接口
    Route::get('/interface/user/UserAddMoney', 'User\UserController@UserAddMoney');
    //消费记录
    Route::get('/interface/user/getUserRendlst', 'User\UserController@getUserRendlst');
    //提现记录
    Route::get('/interface/user/getUserAppOutMoneylist', 'User\UserController@getUserAppOutMoneylist');
    //提现申请接口
    Route::get('/interface/user/getUserAppOutMoney', 'User\UserController@getUserAppOutMoney');
    
    //未租用变已租用-租用接口
    Route::get('/interface/user/UserRent', 'User\UserController@UserRent');
    
    //获取租用列表
    Route::get('/interface/user/getUserRend', 'User\UserController@getUserRend');
    //归还
    Route::get('/interface/user/UserReturn', 'User\GoodsController@doReturn');
    //交押金接口
    Route::get('/interface/user/UserAddYJMoney', 'User\UserController@UserAddYJMoney');
    //是否交押金
    Route::get('/interface/user/isUserYJMoney', 'User\UserController@isUserYJMoney');
    //退还押金状态-是否交押金 没有
    Route::get('/interface/user/isYJStatus', 'User\UserController@isYJStatus');
    //申请退还押金
    Route::get('/interface/user/RtUserYj', 'User\UserController@RtUserYj');
    //获取账户信息
    Route::get('/interface/user/getUserXingZhi', 'User\UserController@getUserXingZhi');
    //获取提现金额
    Route::get('/interface/user/getTXMoney', 'User\UserController@getTXMoney');
    //开柜门
    Route::get('/interface/user/OpenBox', 'User\UserController@OpenBox');
    Route::get('/interface/user/ReturnOpenBox', 'User\UserController@mReturnOpenBox'); //兼容这个OpenBox，这个接口
    
    //获取企业信息
    Route::get('/interface/customer/getCutomerInfo', 'User\CustomerController@getCutomerInfo');
    //绑定企业
    Route::get('/interface/customer/BindCustomer', 'User\CustomerController@BindCustomer');
    
    //扫描箱体，获取到箱体号和柜子号获取柜子里商品信息
    Route::get('/interface/goods/getGoodsInterface', 'User\GoodsController@getGoodsInterface');
 
    //扫描箱体，获取到箱体号和柜子号  获取柜子里商品信息
    Route::get('/interface/goods/getStatus', 'User\GoodsController@getStatus');
    //箱子关闭后会自动调用该接口
    Route::get('/interface/goods/doReturn', 'User\GoodsController@doReturn');
    //equip
    //报修接口
    Route::get('/interface/equip/AppRepair', 'User\RepairController@AppRepair');
    //监测设备状态（eno为设备号，bno为柜子号）--暂未用到
    Route::get('/interface/equip/getStatus', 'User\GoodsController@getStatus');
    
    /*************************商城******************************/
    //商品列表
    Route::get('/interface/order/goodslst', 'User\GoodsController@goodslst');
    //详情
    Route::get('/interface/order/getGoodsInfo', 'User\GoodsController@getGoodsInfo');
    //订单列表
    Route::get('/interface/order/getOrderlist', 'User\OrderController@getOrderlist');
    //订单详情
     Route::get('/interface/order/getOrderinfo', 'User\OrderController@getOrderinfo');
    //订单创建
     Route::get('/interface/order/Order', 'User\OrderController@Order');
    //订单创建信息返回
    Route::get('/interface/order/OrderInfo', 'User\OrderController@OrderInfo');
    //订单创建信息返回
    Route::get('/interface/user/SumFee', 'User\GoodsController@SumFee');
    
});

//内部接口
Route::group(['middleware' => ['auth.api']], function(){
    Route::get('/priv', 'IndexController@priv');
    
});